﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookFly.Models
{
    public class FlightInternationalPrice
    {
        public Responsestatus responseStatus { get; set; }
        public string passengerType { get; set; }
        public List<Pricelist> priceList { get; set; }
        public string toast { get; set; }
    }


    public class Extension
    {
        public string Id { get; set; }
        public string Value { get; set; }
    }

    public class Pricelist
    {
        public string flightNo { get; set; }
        public string airLine { get; set; }
        public string departDate { get; set; }
        public string returnDate { get; set; }
        public float price { get; set; }
        public int rate { get; set; }
        public int flag { get; set; }
        public float totalPrice { get; set; }
        public float transportPrice { get; set; }
    }

    public class FlightInternationalPayload
    {
        public string departNewCityCode { get; set; }
        public string arriveNewCityCode { get; set; }
        public int searchType { get; set; } = 2;
        public int flag { get; set; } = 1;
        public string channelName { get; set; } = "FlightIntlOnline";
        public List<Calendarselection> calendarSelections { get; set; } = new List<Calendarselection> { new Calendarselection() };
        public string startDate { get; set; } = new DateTime().ToShortDateString();
        public int grade { get; set; } = 3;
        public List<Passengerlist> passengerList { get; set; } = new List<Passengerlist> {
        new Passengerlist { passengercount = 1, passengertype = "Adult" }
        };
    }

    public class Calendarselection
    {
        public int selectionType { get; set; } = 8;
        public List<string> selectionContent { get; set; } = new List<string> { "3" };
    }

    public class Passengerlist
    {
        public int passengercount { get; set; }
        public string passengertype { get; set; }
    }
}
